package person.zjh.gulimall.coupon.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class DataSourceCheck implements CommandLineRunner {

    @Value("${spring.datasource.url:NOT_FOUND}")
    private String url;

    @Override
    public void run(String... args) {
        System.out.println(">>> 当前数据库 URL = " + url);
    }
}
